package com.ncbee.base.model.enums;
/**
 * @Author fengzirong
 * @Description 常用
 * @Date  2018/11/21 17:46
 **/
public enum ResultCode {
    SUCCESS(0, "操作成功"),
    BASE_ERROR(1000,"操作失败"),
    WEAK_NET_WORK(-1, "网络异常，请稍后重试"),
    PASSWORD_ERROR(10001, "用户名或密码错误"),
    PARAMETER_ERROR(10101, "参数错误"),
    SERVER_INTERNAL_ERROR(500,"服务器内部错误");
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
